package com.baida.retail.tasksystem.mapper.ext;

import com.baida.retail.tasksystem.entity.Order;
import com.baida.retail.tasksystem.mapper.OrderMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapperExt extends OrderMapper {
    int updateDeliveryTime(Long orderId, Date deliveryDate, String deliveryTimeSlot, boolean deliveredAsSoonAsPossible);

    int updateAquaticProductionToFinished(Long orderId);

    List<Order> selectByOrderIds(@Param("orderIds") List<Long> orderIds);

    Order selectByOrderId(Long orderId);
}
